package com.cwx.service;

import com.cwx.dao.UserRepository;
import com.cwx.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServicceImpl implements UserService{

    @Autowired
    private  UserRepository userRepository;

    @Override
    public User CheckUser(String username, String password) {
       return userRepository.findByUsernameAndPassword(username,password);
    }
}
